package com.zuoye.day09;

public class Demo {
    public static void main(String args[]) {
        String str = "192.168.1.1";
        // . 必须得加 转义字符\\
        for(String s : str.split("\\.")){
            System.out.println(s);
        }
    }
}
